package com.jichaoyun.model.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 
 * @TableName realData
 */
@TableName(value ="realData")
@Data
public class Realdata implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long realId;

    /**
     * 站号
     */
    private Integer station;

    @TableField(exist = false)
    private String station_name;

    /**
     * 实时流量（流速）
     */
    private Float flow;

    /**
     * 频率/压差
     */
    private Float freq;

    /**
     * 温度
     */
    private Float temp;

    /**
     * 压力
     */
    private Float pres;

    /**
     * 密度
     */
    private Float density;

    /**
     * 使用蒸汽总量
     */
    private Float total;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 通讯状态
     */
    private Boolean comState;

    /**
     * 写入数据库时间
     */
    private LocalDateTime writeTime;

    /**
     * 记录时间，硬件读取时间
     */
    private LocalDateTime recordTime;

    /**
     * 阀门状态
     */
    private Boolean valveDi;

    /**
     * 通讯状况是否在线
     */
    private Boolean isOnline;

    /**
     * 门开关
     */
    private Boolean doorOpen;

    /**
     * 交/直流情况
     */
    private Boolean isDc;

    /**
     * 电池电压
     */
    private Float voltage;

    /**
     * 停电次数
     */
    private Integer outpowerNum;

    /**
     * 流量报警
     */
    private Boolean fAlarm;

    /**
     * 压力报警
     */
    private Boolean plAlarm;

    /**
     * 温度报警
     */
    private Boolean tAlarm;

    /**
     * 电压报警
     */
    private Boolean vAlarm;

    /**
     * 温度价格
     */
    private Float fPrice;

    /**
     * 是否自动
     */
    private Boolean isAuto;

    private BigDecimal accSpend;

    private Float pipeLoss;

    private Float pipeLossRate;

    private Float subTotalFlow;


    private BigDecimal hourPrice;

    private BigDecimal coupon;

    private Float downFlow;

    private Float upFlow;

    private Float xishu;

    private Float fixpipelossRate;

    /**
     * 口径
     */
    private Float caliber;

    /**
     * 分库片，0是蒸汽，1是水
     */
    private Integer shardingid;


    @TableField(exist = false)
    private LocalDateTime ltDnTime;

    @TableField(exist = false)
    private LocalDateTime ltUpTime;

    @TableField(exist = false)
    private LocalDateTime paraTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}